package com.ttctracker.classes;

import java.io.Serializable;

public class StopItem implements Serializable {

	private static final long serialVersionUID = 1L;

	private String _tag;
	private String _title;
	private String _stopID;
	private Double _lat;
	private Double _lon;
	private Prediction _prediction;
	private String _routeTag;

	public String get_title() {
		return _title;
	}

	public void set_title(String _title) {
		this._title = _title;
	}

	public Double get_lat() {
		return _lat;
	}

	public void set_lat(Double _lat) {
		this._lat = _lat;
	}

	public Double get_lon() {
		return _lon;
	}

	public void set_lon(Double _lon) {
		this._lon = _lon;
	}

	public String get_tag() {
		return _tag;
	}

	public String get_stopID() {
		return _stopID;
	}

	/**
	 * 
	 */
	public StopItem() {
		super();
		_tag = "";
		_title = "";
		_stopID = "";
		_lat = 0.0;
		_lon = 0.0;
		_prediction=new Prediction(1);
		_routeTag="";
	}

	/**
	 * @param _tag
	 * @param _title
	 * @param _stopID
	 * @param _lat
	 * @param _lon
	 * @param _direction
	 */
	public StopItem(String _tag, String _title, String _stopID, Double _lat,
			Double _lon  ) {
		super();
		this._tag = _tag;
		this._title = _title;
		this._stopID = _stopID;
		this._lat = _lat;
		this._lon = _lon;
		_prediction=new Prediction(1);
		_routeTag="";
	}

	@Override
	public String toString() {
		return _title;
	}

	public void set_tag(String _tag) {
		this._tag = _tag;
	}

	public void set_stopID(String _stopID) {
		this._stopID = _stopID==null?"":_stopID;
	}

	public void set_prediction(Prediction _prediction) {
		this._prediction = _prediction;
	}

	public Prediction get_prediction() {
		//_prediction.trimToSize();
		return _prediction;
	}

	public String get_routeTag() {
		return _routeTag;
	}

	public void set_routeTag(String _routeTag) {
		this._routeTag = _routeTag;
	}
	
	
}
